#!/usr/bin/node

const user = {
  name:'孙乐',
  age :19,
  qq  :'2680655949'
};

const log = console.log;

try{

  //三种占位符
  log('name:%s',user.name);
  log('age :%d',user.age);
  log('JSON:%j',user);

  log('qq:%s',user.qq);
  log('qq:',user.qq);
  log('qq:'+user.qq);
  log(`qq:${user.qq}`);
}catch(e){
  console.error('Error: something wrong');
}

